class Buff_Base
  attr_reader   :id
  attr_reader   :actor
  attr_reader   :name
  attr_reader   :keep
  attr_reader   :description
  attr_accessor   :left_turn_count
  attr_accessor   :atk_up_rate
  attr_accessor   :speed_up_rate
  def initialize(actor, turn_count)
    @actor = actor
    @keep = false
    @left_turn_count = turn_count
    @atk_up_rate = 0
    @speed_up_rate = 0
  end
  def on_add
  end
  def on_remove
  end
  def on_turn_start
  end
  def on_turn_end
    if @keep == false
      change_left_count(-1)
    end
  end
  def change_left_count(val)
    @left_turn_count += val
    if @left_turn_count < 0
      @left_turn_count = 0
    end
  end
  def on_use_skill
  end
end
